// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 0 0;
    font-size:14px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}
.el-range-editor--mini.el-input__inner{ height:29px;}
.el-range-editor--mini .el-range-separator{ line-height:22px;}
// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-collapse-item__content {
  padding-bottom: 0;
}
// .el-dialog__body {
//     padding: 10px;
// }
.el-menu {
  background-color: $menuBg!important;
}
.el-submenu__title {
  color: $menuText!important;
}
.el-menu-item {
  color: $menuText!important;
  &.is-active {
    color: $menuActiveText!important;
  }
}
.el-submenu__title,.el-menu-item{ height:40px; line-height: 40px;}
.el-submenu__title:hover, .el-submenu__title:focus{ background-color: $menuHover;}
.el-submenu .el-menu-item{ height:40px; line-height: 40px;}
.el-dialog__title{ font-size:16px;}
.el-drawer__header{ 
  font-size:16px;
  .el-drawer__close-btn{ padding-right: 0; font-size:16px;}
}
.el-drawer__header>:first-child{ outline: 0;}
.el-drawer__close-btn{ outline:0;}
.el-input--mini .el-input__inner{ height: 29px; line-height: 29px;}
.vue-treeselect__control{ height:29px !important; border-radius:2px;}
.vue-treeselect__placeholder, .vue-treeselect__single-value{ line-height: 29px !important; font-size:12px;}
.vue-treeselect--single .vue-treeselect__input{ height:auto !important;}
.vue-treeselect__value-container{ display: block;}
.vue-treeselect--searchable:not(.vue-treeselect--disabled) .vue-treeselect__value-container{ line-height: 20px;}
.vue-treeselect--searchable.vue-treeselect--multi.vue-treeselect--has-value .vue-treeselect__input-container{ padding-top:0; line-height:20px;}
.vue-treeselect__label{font-size: 14px; font-weight: normal; }
.vue-treeselect__option--selected {
  // note that these should override `.vue-treeselect__option--highlight`
  .vue-treeselect--single & {
    background: $white;
    color: $--color-primary;
  }
}
.vue-treeselect__checkbox--checked {color: $--color-primary;}
// .vue-treeselect{width: 200px;}
.vue-treeselect--has-value .vue-treeselect__multi-value{ margin-bottom: 0;}
.vue-treeselect__multi-value-item{ height:20px;line-height:20px; padding:0;}
.vue-treeselect__multi-value-item-container{ line-height: 20px; padding: 0; margin: 2px 6px 2px 0;}
.el-button--mini{ border-radius: 2px;}
.el-tag{ border-radius: 2px;}
.el-input-group__append, .el-input-group__prepend{ border-radius: 2px; background-color: $white;}
.el-input__inner{ border-radius:2px;}
.el-table .caret-wrapper{ height:24px;}
.el-table .sort-caret.ascending{ top:0;}
.el-table .sort-caret.descending{ bottom:2px;}
.el-form-item__label{ font-weight:normal; font-size:12px;}
.el-pager li{ font-weight: normal;}
.el-select-dropdown__item.selected{ font-weight: normal;}
.el-form-item__content{
  .el-select{ display:block;}
  .el-input-number{ width:100%;}
  .el-date-editor.el-input, .el-date-editor.el-input__inner{ width:100%;}
  & > span{ font-size:12px;}
}
.el-collapse-item__header{
  & > span{ font-weight: bold; font-size:14px; padding-left: 4px;}
}
.el-card__header{ 
  padding-top: 10px;
  padding-bottom: 10px;
  & > div{
    height: 29px;
    display: flex; 
    align-items: center;
  }
  & > div > span{ flex:1;}
}
.el-input__prefix{ z-index:1;}